package com.leilbase.adminservice.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

@Component
public class TaskComponent {

    private static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm:ss");

//    @Scheduled(fixedRate = 5000)
//    public void printCurrentTime() {
//        System.out.println(simpleDateFormat.format(new Date()));
//    }

}
